#scala.Dockerfile
#Author: zzx

ARG UBUNTU_VERSION=16.04

FROM ubuntu:${UBUNTU_VERSION} as base

RUN apt-get update && apt install -y apt-transport-https

RUN apt-get install -y openjdk-8-jdk

RUN echo "deb https://dl.bintray.com/sbt/debian /" | tee -a /etc/apt/sources.list.d/sbt.list

RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823

RUN apt-get update && apt-get install -y sbt

RUN apt-get install scala -y

RUN apt-get install vim -y

